﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pgDocGlobalAuditoria.aspx.cs" Inherits="EGuayas.Web.Auditoria.pgDocGlobalAuditoria" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link  href="~/Resources/css/Style.css"  rel="stylesheet" />
    <!-- Load Ext JS -->
     <script src="../../Resources/js/Global.js"></script>
</head>
<body>
    <form runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server"></ext:ResourceManager>
    <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
        <Items>
               <ext:GridPanel runat="server" ID="gpnLicencias" Title="Expedientes para Auditoria"
                Region="Center" >
                <Store>
                    <ext:Store runat="server" ID="stoExpedienteAud">
                        <Model>
                                <ext:Model runat="server" IDProperty="Id" >
                                    <Fields>
                                        <ext:ModelField Name="Id"/>
                                        <ext:ModelField Name="Nombre"/>
                                        <ext:ModelField Name="Descripcion"/>
                                        <ext:ModelField Name="FechaCreacion" Type="Date"/>
                                        <ext:ModelField Name="Version"/>
                                        <ext:ModelField Name="Referencia"/>
                                        <ext:ModelField Name="Ruta"/>
                                        <ext:ModelField Name="PersonaNombres"/>                            
                                        <ext:ModelField Name="FaseNombre"/>
                                        <ext:ModelField Name="Origen"/>                            
                                    </Fields>
                                </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel>
                    <Columns>
                        <ext:Column ID="Column2" runat="server" Text="Nombre" Flex="1" DataIndex="Nombre" />      
                        <ext:DateColumn ID="DateColumn1" runat="server" Text="Fecha" Width="95" DataIndex="FechaCreacion" Format="dd-m-yyyy" />                
                        <ext:Column ID="Column3" runat="server" Text="Descripción" DataIndex="Descripcion" Width="150" />                       
                        <ext:Column ID="Column5" runat="server" Text="Fase" DataIndex="FaseNombre" Width="80" />
                        <ext:Column ID="Column1" runat="server" Text="Origen" DataIndex="Origen" Flex="1" />    
                        <ext:Column ID="Column4" runat="server" >
                            <Commands>
                                <ext:ImageCommand CommandName="View" Icon="Zoom" Text="Vizualizar">
                                        <ToolTip Text="Vizualizar" />
                                </ext:ImageCommand>
                            </Commands>
                            <Listeners>
                                <Command Handler="AppGlobalJs.showPdf('../../../..',record.data.Ruta);" />
                            </Listeners>
                        </ext:Column>                                           
                    </Columns>
                </ColumnModel>
                <View>
                    <ext:GridView ID="GridView1" runat="server" StripeRows="true" />                   
                </View>
                <BottomBar>
                        <ext:PagingToolbar ID="PagingToolbar1" runat="server">
                        <Items>
                            <ext:Label ID="Label1" runat="server" Text="Filas por página:" />
                            <ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="10" />
                            <ext:ComboBox ID="ComboBox1" runat="server" Width="80">
                                <Items>
                                    <ext:ListItem Text="5" />
                                    <ext:ListItem Text="10" />
                                    <ext:ListItem Text="15" />
                                    <ext:ListItem Text="20" />
                                    <ext:ListItem Text="25" />
                                    <ext:ListItem Text="30" />
                                    <ext:ListItem Text="35" />
                                    <ext:ListItem Text="40" />
                                    <ext:ListItem Text="45" />
                                    <ext:ListItem Text="50" />
                                </Items>
                                <SelectedItems>
                                    <ext:ListItem Value="10" />
                                </SelectedItems>
                                <Listeners>
                                    <Select Handler="#{gpnLicencias}.store.pageSize = parseInt(this.getValue(), 10); #{gpnLicencias}.store.load();" />
                                </Listeners>
                            </ext:ComboBox>
                        </Items>
                  
                    </ext:PagingToolbar>
                </BottomBar> 
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
    </form>
     <ext:XScript ID="XScript1" runat="server">
        <script type="text/javascript">
            var pgFn = new Object();
            
 </script>
    </ext:XScript>   
</body>
</html>
